﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ast = YAPL.Language.Ast;
namespace YAPL.Language.Compiler.CodeGen {
	/// <summary>
	/// Abstract class for code generation. Produces output from given ast.
	/// </summary>
	public abstract class CodeGenerator {
		protected readonly OutputInfo _outputInfo;
		protected CodeGenerator(OutputInfo outputInfo) {
			_outputInfo = outputInfo;
		}

		public abstract void GenerateCode(Ast.Expression ast);
	}
}
